/**
 * Project Name:mauto-web
 * File Name:AreaService.java
 * Package Name:com.inftech.mauto.sys.service
 * Date:2016年10月7日下午9:14:13
 * Copyright (c) 2016, inf-technology Co., Ltd. All Rights Reserved.
 *
*/

package com.inftech.mauto.core.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inftech.mauto.core.dao.IFollowDao;
import com.inftech.mauto.core.entity.Follow;
import com.mingsoft.base.biz.impl.BaseBizImpl;
import com.mingsoft.base.dao.IBaseDao;

/**
 * 
 * ClassName: FollowService <br/>
 * Function: 回访service. <br/>
 * date: 2016年11月6日 下午10:24:00 <br/>
 * 
 * @author puyf
 * @version
 * @since JDK 1.7
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
@Service("followService")
public class FollowService extends BaseBizImpl {

	/**
	 * 回访持久化层注入
	 */
	@Autowired
	private IFollowDao followDao;

	@Override
	protected IBaseDao getDao() {
		return followDao;
	}

	/**
	 * 
	 * queryFollow:查询回访. <br/>
	 *
	 * @author puyf
	 * @param orderId
	 * @return
	 * @throws Exception
	 * @since JDK 1.7
	 */
	public Follow queryFollow(String orderId) throws Exception {
		Map<String, Object> whereMap = new HashMap<String, Object>();
		whereMap.put("order_id", orderId);
		whereMap.put("del_flag", 0);
		Follow follow = followDao.getEntity(whereMap);
		return follow;
	}

}
